#include <stdio.h>

/**
 * 逻辑表达式
 */
int main() {

	int x = 5, y = 0;

	printf("x = %d, y = %d\n", x, y);

	if (x > 0 && y >= 0) {
		printf("x is greater than 0 and"
			   "y is greater than or equal to 0\n");
	}

	if (x == 0 || y == 0) {
		printf("x equals 0 or y equals 0\n");
	}

	if (!(x == y)) {
		printf("x is not equal to y\n");
	}

}